<?php
include ("../util/session.php");
require_once ("../config.inc.php");
require_once ("../include/mysql.inc.php");
require_once ("../include/resTag.inc.php");
$restagDao = new ResTag ();
$rows = $restagDao->query ();
?>
<html>
<body>

	<form action="../action/res/upload_file.php" method="post"
		enctype="multipart/form-data">

		<input type="file" name="file" id="file"  /> <br /> 文件名: <input
			type="text" name="filename" /> <br /> &nbsp&nbsp标签: <select name="tag" multipe="multiple">
<?php
if ($rows) {
	foreach ( $rows as $value ) {
		?>
<option value="<?php echo $value[id]?>"><?php echo $value[name]?></option>
<?php
	}
}
?>	
			</select><br> <input type="submit" name="submit" value="Submit" />
	</form>

</body>
</html>